package com.njtoyo.taxi.admin.mapper.master.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.master.entity.RideMarking;
import com.njtoyo.taxi.admin.rest.export.RideMarkingListData;
import com.njtoyo.taxi.admin.rest.presenter.business.ride.marking.RideMarkingDetailsPresenter;
import com.njtoyo.taxi.admin.rest.presenter.business.ride.marking.RideMarkingPagePresenter;
import com.njtoyo.taxi.admin.rest.wrapper.business.ride.marking.RideMarkingExportWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.business.ride.marking.RideMarkingWrapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Dell
 * @since 2021-11-10
 */
@Repository
@DS(Const.PRIMARY_DS)
public interface RideMarkingMapper extends BaseMapper<RideMarking> {
    Page<RideMarkingPagePresenter> rideMarkingPage(RideMarkingWrapper wrapper);

    Integer evaluationCounts(RideMarkingExportWrapper wrapper);

    List<RideMarkingListData> evaluationList(RideMarkingExportWrapper wrapper);

    RideMarkingDetailsPresenter evaluationDetails(Long id);

}
